<template>
	<view class="page-information-detail">
		<u-navbar title="消息详情" back-icon-color="#000" :border-bottom="false"
		title-size="36" title-color="#000" title-bold></u-navbar>
		<view class="wrap">
			<view class="title u-font-36">
				{{detail.xxbt}}
			</view>
			<view class="time u-font-30">
				{{$u.timeFormat(detail._createtime, 'yyyy年mm月dd日')}}
			</view>
			<u-line class="u-margin-top-20" color="#999"></u-line>
			<view class="content u-margin-top-50 u-font-30">
				{{detail.xxnr}}
			</view>
		</view>
	</view>
</template>

<script>
	import { commonGet } from "@/api/commonapi.js"
	export default {
		data() {
			return {
				detail:{}
			}
		},
		onLoad(options) {
			this.getDetail(options.id)
		},
		methods: {
			getDetail(id){
				let _this = this
				let query = {
					ak:_this.$store.state.token,
					cmd:"sMessageM_query_proc",
					para:JSON.stringify({
						id:id
					})
				}
				commonGet(query,({Data})=>{
					_this.detail = Data
				})
			}
		}
	}
</script>

<style lang="scss">
.page-information-detail{
	.wrap{
		padding: 0 30rpx;
		.title{
			line-height: 60rpx;
		}
		.time{
			line-height: 40rpx;
		}
		.time,.content{
			color: #999;
		}
	}
}
</style>
